package com.authorization.demo.excel.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Remarks:
 * @ClassName: UserExcel
 * @Author: Micora
 * @CreateTime: 2022/8/1
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserExcel {
    @ColumnWidth(20)
    @ExcelProperty(value = "用户名username",index = 0)
    private String userName;

    @ColumnWidth(20)
    @ExcelProperty(value = "姓名name",index = 1)
    private String name;

    @ColumnWidth(20)
    @ExcelProperty(value = "密码password",index = 2)
    private String password;

    @ColumnWidth(20)
    @ExcelProperty(value = "性别gender",index = 3)
    private String gender;//(1男，2女)

    @ColumnWidth(20)
    @ExcelProperty(value = "手机phone",index = 4)
    private String phone;

    @ColumnWidth(20)
    @ExcelProperty(value = "邮箱email",index = 5)
    private String mail;

    @ColumnWidth(20)
    @ExcelProperty(value = "状态status", index = 6)
    private String status;//(1有效，0无效)

    @ColumnWidth(20)
    @ExcelProperty(value = "备注remarks", index = 7)
    private String remarks;
}
